package com.atguigu.dao;

import com.atguigu.base.BaseDao;
import com.atguigu.entity.Dict;

import java.util.List;

/**
 * @author:ahang
 * @create:2022-07-24 11:50
 * @Description:
 */
public interface DictDao extends BaseDao {

    List<Dict> findListByParentId(Long parentId);

    //判断一个节点孩子的数量,从而判断该结点是否为父节点
    Integer countIsParent(Long id);

    Dict getByDictCode(String dictCode);

    String getNameById(Long areaId);
}
